import java.util.Arrays;

/**
 * <pre>
 * -
 * Author : J.L.Zhou
 * E-Mail : 2233875735@qq.com
 * Tel : 151 1104 7708
 * Date : 2021-03-19 11:46
 * Version : 1.0
 * Copyright 2021 jlzhou.top Inc. All rights reserved.
 * Warning: this content is only for internal circulation of the company.
 *          It is forbidden to divulge it or use it for other commercial purposes.
 * </pre>
 **/

public class ParamTest {

  /**
   *
   * @param args
   */
  public static void main(String[] args) {
    ParamTest p = new ParamTest();
    int a = 1;
    p.fn1(a);
    System.out.println("a:"+a);


    System.out.println("---------------------");
    int[] b = {1,2,3};
    p.fn2(b);
    System.out.println("b:"+ Arrays.toString(b));


  }

  public void fn1(int param1){
    param1++;
    param1 = param1 +1;
    System.out.println("param1:"+param1);
  }

  public void fn2(int[] param2){
    param2[0]=10;
    param2 = new int[3];
    param2[0]=11;
    param2[1]=12;
    param2[2]=13;
    System.out.println("param2:"+Arrays.toString(param2));
  }
}